@import 'src/defaults';

.mat-card {
  margin: $omv-margin;

  .mat-card-actions {
    padding-bottom: $omv-padding / 2;
    padding-left: $omv-padding / 2;
  }
}

.dragdrop-container {
  max-width: 100%;
  display: inline-block;
  vertical-align: top;
}

.dragdrop-list {
  background-color: $omv-color-white;
  padding: unset;
  border: solid 1px $omv-color-component-border;
  min-height: 48px;
  border-radius: $omv-radius;
  overflow: hidden;
  display: block;
}

.dragdrop-list-item {
  background-color: $omv-color-white;
  border-bottom: solid 1px $omv-color-component-border;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  cursor: move;

  ::ng-deep .mat-list-item-content {
    width: 100%;
  }
}

.dragdrop-list-item:hover {
  background-color: $omv-color-list-item-hover;
}

.cdk-drag-preview {
  padding: 0 $omv-padding;
  box-sizing: border-box;
  border-radius: $omv-radius;
  box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 3px 14px 2px rgba(0, 0, 0, 0.12);
}

.cdk-drag-placeholder {
}

.cdk-drag-animating {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}

.dragdrop-list-item:last-child {
  border: none;
}

.dragdrop-list.cdk-drop-list-dragging .dragdrop-list-item:not(.cdk-drag-placeholder) {
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
}
